//
//  UIView+Frame.m
//  01-UIView、UIWindow
//
//  Created by tusm on 16/7/14.
//  Copyright © 2016年 QC.L. All rights reserved.
//

#import "UIView+Frame.h"

@implementation UIView (Frame)
- (void)setJH_x:(CGFloat)JH_x{
    CGRect rect = self.frame;
    rect.origin.x = JH_x;
    self.frame = rect;
}
- (CGFloat)JH_x{

    return self.frame.origin.x;
}

- (void)setJH_y:(CGFloat)JH_y{

    CGRect rect = self.frame;
    rect.origin.y = JH_y;
    self.frame = rect;

}
- (CGFloat)JH_y{

    return self.frame.origin.y;
}

- (void)setJH_width:(CGFloat)JH_width{


    CGRect rect = self.frame;
    rect.size.width = JH_width;
    self.frame = rect;
}
- (CGFloat)JH_width{

    return self.frame.size.width;

}

- (void)setJH_height:(CGFloat)JH_height{

    CGRect rect = self.frame;
    rect.size.height = JH_height;
    self.frame = rect;

}
- (CGFloat)JH_height{

    return self.frame.size.height;
}





@end
